Skip to content

Conversation

@10622130
Copy link

No description provided.

"A comparison between numbers of different types behaves as though the exact "
"values of those numbers were being compared. [2]_"
msgstr ""
msgstr "儘管數值之間的型別不同只要確切數值相同基本上比較就會成立 [2]_"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
msgstr "儘管數值之間的型別不同只要確切數值相同基本上比較就會成立 [2]_"
msgstr "不同型別的數值之間進行比較時,其行為就像是在比較這些數值的實際值 [2]_"

Comment on lines +9330 to +9332
"CPython 針對在 :class:`int` 與 :class:`str` 之間轉換時設有一個全域限制,"
"用於降低DoS攻擊的風險。且這個限制只適用於十進位或非二進制的數值。"
"十六進位,八進位,還有二進位的轉換則沒有長度限制。此限制值可以被設定與調整。"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • DoS 應該翻譯,附註原文部分可以改放完整名稱
  • 原文 only 有斜體
  • non-power-of-two 是指「非 2 的次方」
Suggested change
"CPython 針對在 :class:`int` 與 :class:`str` 之間轉換時設有一個全域限制,"
"用於降低DoS攻擊的風險。且這個限制只適用於十進位或非二進制的數值"
"十六進位八進位,還有二進位的轉換則沒有長度限制。此限制值可以被設定與調整"
"CPython 針對在 :class:`int` 與 :class:`str` 之間轉換時設有一個全域限制,"
"用於降低阻斷服務 (DoS) 攻擊的風險。這個限制\\* 只\\* 適用於十進位其他非 2 的冪次進位的數值"
"十六進位八進位,還有二進位的轉換則沒有長度限制。此限制值可以被調整"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants